package org.apache.servicecomb.fence.resource.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.servicecomb.fence.api.resource.Student;

@Mapper
public interface StudentMapper {

    @Select("""
      select ID, AGE, NAME, CLASS_ID from student where ID=#{id};
      """)
    Student getStudengById(@Param("id") Long id);
}
